package cn.ztydata.teachingsystem.heaven.cons;

/**
 * 常量定义类
 * Created by chenxin on 2014/11/13.
 */
public class Constants {
    /**
     * session key
     */
    public static final String SESSION_USER_ROLE = "user_role"; //用户角色
    public static final String SESSION_LOGIN_USER = "login_user_info"; //登录用户信息

    /**
     * 上传文件mime类型
     */
    public static final String FILE_MIME_XLS = "application/vnd.ms-excel"; //excel 2003以下
    public static final String FILE_MIME_XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; //excel 2007以上
    public static final String FILE_MIME_JPG = "image/jpeg";
    public static final String FILE_MIME_PNG = "image/png";
    public static final String FILE_MIME_GIF = "image/gif";
    public static final String FILE_MIME_BMP = "image/bmp";
    public static final String FILE_MIME_DOC = "application/msword"; //word 2003以下
    public static final String FILE_MIME_DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; //word 2007以上
    public static final String FILE_MIME_TXT = "text/plain";
    public static final String FILE_MIME_FLASH = "application/x-shockwave-flash";

    /**
     * 列表分页条数
     */
    public static final int COURSE_LIST_SIZE = 8; //课程列表每页条数

    /**
     * 上传文件存储目录
     */
    public static final String UPLOAD_DIR = "files";

    /**
     * 导入数目限制
     */
    public static final int TOTAL_2K = 2000;
    public static final int TOTAL_5K = 5000;
}
